from django.conf.urls import patterns, include, url
from django.views.generic import TemplateView
from django.conf import settings
from django.conf.urls.static import static

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()


from dajaxice.core import dajaxice_autodiscover, dajaxice_config
dajaxice_autodiscover()

urlpatterns = patterns('',
    # welcome page
    url(r'^$', TemplateView.as_view(template_name='welcome.html'), name="welcome"),
    # logined home page
    url(r'^home/', TemplateView.as_view(template_name='home.html'), name="home"),
    # Examples:
    # url(r'^$', 'h3.views.home', name='home'),
    # url(r'^h3/', include('h3.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    
    url(r'^about/', TemplateView.as_view(template_name='about.html'), name="about"),
    url(r'^contact/', TemplateView.as_view(template_name='contact.html'), name="contact"),
    
    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
    
    # profiles url and friendnet urls
    url(r'^profiles/', include('profiles.urls')),
    
) + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)


